﻿<%@ Page Title="Rule Execution" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RuleExecution.aspx.cs" Inherits="RuleExecution" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lableTitle" runat="server" Text="Rule Execution" Font-Bold="true"
        Font-Size="Medium" ForeColor="Black" />
    <table style="width: 100%;" border="1px">
        <tr>
            <td rowspan="4" style="width: 20%;" align="left" valign="top">
                <asp:ListBox ID="LBRuleList" runat="server" Width="100%" OnSelectedIndexChanged="LBRule_SelectedIndexChanged"
                    Rows="25" DataSourceID="SDSRulesList" DataTextField="Name" DataValueField="RowNo"
                    AutoPostBack="True" Height="459px"></asp:ListBox>
                <asp:SqlDataSource ID="SDSRulesList" runat="server" ConnectionString="<%$ ConnectionStrings:AgentBillingConnectionString %>"
                    SelectCommand="SELECT [RowNo], [Name] FROM [RuleDetails] ORDER BY [Name]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel runat="server" ID="PanelUpper">
                    <br />
                    <asp:Label ID="LabelName" runat="server" Text="Rule Name" Width="100px"></asp:Label>
                    <asp:TextBox ID="TBRuleName" runat="server" Width="400px" Enabled="false"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Label ID="LabelFromDate" runat="server" Text="From Date :" Width="100px"></asp:Label>
                    <asp:TextBox ID="TBFromDate" runat="server" Width="150px" Enabled="false"></asp:TextBox>
                    <asp:Label ID="LabelToDate" runat="server" Text="To Date :" Width="80px"></asp:Label>
                    <asp:TextBox ID="TBToDate" runat="server" Width="150px" Enabled="false"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Label ID="LabelFrequency" runat="server" Text="Frequency" Width="100px"></asp:Label>
                    <asp:TextBox ID="TBFrequency" runat="server" Width="150px" Enabled="false"></asp:TextBox>
                    <br />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="center" valign="middle">
                <asp:Label ID="labelSubRule" runat="server" Width="200px" Text="Sub Rules List"></asp:Label>
                <asp:Label ID="labelSepetor1" runat="server" Width="50px"></asp:Label>
                <asp:Label ID="labelCycle" runat="server" Width="200px" Text="Unbilled/Adjusted Cycle"></asp:Label>
                <br />
                <br />
                <asp:ListBox ID="LBSubRuleList" runat="server" Width="200px" Rows="15" DataTextField="Name"
                    DataValueField="RowNo" Enabled="false" OnSelectedIndexChanged="LBSubRuleList_SelectedIndexChanged" AutoPostBack="true">
                </asp:ListBox>
                <asp:Label ID="labelSepetor2" runat="server" Width="50px"></asp:Label>
                <asp:ListBox ID="LBCycleList" runat="server" Width="200px" Rows="15" DataTextField="CycleDates"
                    DataValueField="CycleId"></asp:ListBox>
            </td>
        </tr>
        <tr align="center" valign="middle">
            <td>
                <asp:Button ID="BExecute" runat="server" Text="Execute" OnClick="BExecute_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
